package com.yc.controller;

import com.yc.service.GetInfoService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@Tag( name="show hello+ID",description = "远程调用hello和generate服务获取数据")
@RestController
public class GetInfoController {

    @Autowired
    private GetInfoService getInfoService ;

    @GetMapping("/getInfo")
    public String getInfo(){
        return  getInfoService.getInfoFromService();
    }
}
